package com.wenjun.young.web.entity;

import cn.org.atool.fluent.mybatis.annotation.FluentMybatis;
import cn.org.atool.fluent.mybatis.annotation.TableField;
import cn.org.atool.fluent.mybatis.annotation.TableId;
import cn.org.atool.fluent.mybatis.base.RichEntity;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * WxUserEntity: 数据映射实体定义
 *
 * @author Powered By Fluent Mybatis
 */
@SuppressWarnings({"rawtypes", "unchecked"})
@Data
@Accessors(
    chain = true
)
@EqualsAndHashCode(
    callSuper = false
)
@FluentMybatis(
    table = "wx_user",
    schema = "young"
)
public class WxUserEntity extends RichEntity {
  private static final long serialVersionUID = 1L;

  /**
   * 流水号
   */
  @TableId("id")
  private Long id;

  /**
   * 微信头像
   */
  @TableField("avatar_url")
  private String avatarUrl;

  /**
   * 城市
   */
  @TableField("city")
  private String city;

  /**
   * 国家
   */
  @TableField("country")
  private String country;

  /**
   * 创建者
   */
  @TableField("create_by")
  private String createBy;

  /**
   * 创建时间
   */
  @TableField("create_time")
  private Date createTime;

  /**
   * 删除标志
   */
  @TableField("del_flag")
  private Boolean delFlag;

  /**
   * 性别0男1女
   */
  @TableField("gender")
  private String gender;

  /**
   * 授权
   */
  @TableField("is_auth")
  private Boolean isAuth;

  /**
   * 语言
   */
  @TableField("language")
  private String language;

  /**
   * 手机号码
   */
  @TableField("mobile")
  private String mobile;

  /**
   * 微信昵称
   */
  @TableField("nick_name")
  private String nickName;

  /**
   * openid
   */
  @TableField("openid")
  private String openid;

  /**
   * 省份
   */
  @TableField("province")
  private String province;

  /**
   * sessionKey
   */
  @TableField("session_key")
  private String sessionKey;

  /**
   * 类型1医生2管理
   */
  @TableField("type")
  private String type;

  @Override
  public final Class entityClass() {
    return WxUserEntity.class;
  }
}
